#!/usr/bin/env python
# -*- coding:utf-8 -*-

n = 966
s = 0
for i in range(n):
    if i % 2 == 0:
        s -= i
    else:
        s += i
    print(i,s)
print(s)
